<%@include file="../menu/util.jsp" %>
<%@page contentType="text/html; charset=iso-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <fmt:bundle basename="app">
    <head>
        <title><fmt:message key="login.title.tag" /></title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <jsp:include page="../menu/header.jsp" />
        <%-- remember to name the variables the same as the attributes --%>
        <c:set var="numberList" value="${requestScope.numberList}" />
        <c:set var="aBoolean" value="${requestScope.aBoolean}" />
        <c:set var="objective" value="${requestScope.objective}" />
    </head>
    <body>
        <%-- this is how you use an if with jstl --%>
        <c:if test="${!aBoolean}">
            <c:out value="${aBoolean}" /><br />
        </c:if>
        <%-- this is how you use an if else with jstl --%>
        <c:choose>
            <c:when test="${aBoolean}">
                <c:out value="this won't print" /><br />
            </c:when>
            <c:otherwise>
                <c:out value="this will print" /><br />
            </c:otherwise>
        </c:choose>
        <%-- this is how you use a foreach with jstl --%>
        <c:forEach var="number" items="${numberList}">
            <c:out value="${number}" /><br />
        </c:forEach>

         <%-- this is how you use an object properties with jstl --%>
         <c:out value="${objective.x}" /><br />
         <c:out value="${objective.y}" /><br />
         <c:out value="${objective}" />
    </body>
    </fmt:bundle>
</html>
